package business;

import java.util.List;

import dao.ISeriesDAO;
import dao.JDBCSeriesDAO;
import domain.Series;



public class BusinessSeries {

	
	public static List<Series> getAllSeries(){
		ISeriesDAO SeriesDAO = new JDBCSeriesDAO();
		return SeriesDAO.getAllSeries();
	}
	
	public static List<Series> getAllSeriesByState(String state){
		ISeriesDAO SeriesDAO = new JDBCSeriesDAO();
		return SeriesDAO.getAllSeriesByState(state);
	}
	
	public static List<Series> getAllSeriesStartingWithLetter(char letter){
		ISeriesDAO SeriesDAO = new JDBCSeriesDAO();
		return SeriesDAO.getAllSeriesStartingWithLetter(letter);
	}
	
	public static Series getSeriesByTitle(String title){
		ISeriesDAO SeriesDAO = new JDBCSeriesDAO();
		return SeriesDAO.getSeriesByTitle(title);
	}
	
	public static Series getSeriesByIdVideo(Integer id) {
		ISeriesDAO SeriesDAO = new JDBCSeriesDAO();
		return SeriesDAO.getSeriesByIdVideo(id);
	}
	
	public static List<Series> getSeriesTharContainsCharSequence(String partOfTitle)
	{
		ISeriesDAO SeriesDAO = new JDBCSeriesDAO();
		return SeriesDAO.getSeriesThatContainstCharSequence(partOfTitle);		
	}

	public static List<Series> getAllSeriesByTitleYearGenre(String title,
			Integer year, String genre) {
		ISeriesDAO SeriesDAO = new JDBCSeriesDAO();
		return SeriesDAO.getAllSeriesByTitleYearGenre(title, year, genre);
	}

	public static List<Series> getAllSeriesByTitleYear(String title,
			Integer year) {
		ISeriesDAO SeriesDAO = new JDBCSeriesDAO();
		return SeriesDAO.getAllSeriesByTitleYear(title,year);
	}

	public static List<Series> getAllSeriesByTitleGenre(String title,
			String genre) {
		ISeriesDAO SeriesDAO = new JDBCSeriesDAO();
		return SeriesDAO.getAllSeriesByTitleGenre(title,genre);
	}

	public static List<Series> getAllSeriesByTitle(String title) {
		ISeriesDAO SeriesDAO = new JDBCSeriesDAO();
		return SeriesDAO.getAllSeriesByTitle(title);
	}

	public static List<Series> getAllSeriesByYearGenre(Integer year,
			String genre) {
		ISeriesDAO SeriesDAO = new JDBCSeriesDAO();
		return SeriesDAO.getAllSeriesByYearGenre(year,genre);
	}

	public static List<Series> getAllSeriesByYear(Integer year) {
		ISeriesDAO SeriesDAO = new JDBCSeriesDAO();
		return SeriesDAO.getAllSeriesByYear(year);
	}

	public static List<Series> getAllSeriesByGenre(String genre) {
		ISeriesDAO SeriesDAO = new JDBCSeriesDAO();
		return SeriesDAO.getAllSeriesByGenre(genre);
	}
}
